<?php
$xtpl = new XTemplate($inner_templates."home.index.htm");
$xtpl_main->assign ("page_title", _LB_HOME);
$xtpl->assign ("base_url", $base_url);

$_SESSION['back_url'] = selfURL();
//-- get data from static pages
if($_GET['code']==""){
	$code="home_page";
}
else{
	$code=$_GET['code'];
}

$text = $DB->DBGetField('static_pages', "sp_code = '".$code."' AND id_lang='".$_SESSION['ID_LANG']."'", 'sp_text');
$xtpl->assign('txt',stripslashes($text));
$name = $DB->DBGetField('static_pages', "sp_code = '".$code."' AND id_lang='".$_SESSION['ID_LANG']."'", 'sp_name');
$xtpl->assign('name',stripslashes($name));
//-- end
?>
